package cc.yugu.yhdw.webserver.persistence.hdw;

import cc.yugu.yhdw.common.domain.hdw.Bicycle;
import cc.yugu.yhdw.common.persistence.MasterMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * 电动车信息
 *
 * @Date:Created in 2018/6/30 11:22
 * @Author:
 * @Modified By: zjn 2018/6/30 11:22
 */
public interface BicycleMapper extends MasterMapper {
    /**
    * 按条件查询表hdw_bicycle，并返回行数
    *
    * @Param: [search]
    * @Return: int
    * @Author By: zjn 2018/6/30  11:22
    */
    public int findPageCount(Bicycle search);
    /**
    * 分页查询，并将查询结果按照创建时间降序排列
    *
    * @Param: [search]
    * @Return: java.util.List<cc.yugu.yhdw.common.domain.hdw.Bicycle>
    * @Author By: zjn 2018/6/30  11:22
    */
    public List<Bicycle> findPageResult(Bicycle search);
    /**
    * 根据主键查询
    *
    * @Param: [id]
    * @Return: cc.yugu.yhdw.common.domain.hdw.Bicycle
    * @Author By: zjn 2018/6/30  11:22
    */
    public Bicycle find(@Param("id") String id);
    /**
    * 按照客户id查询一条数据
    *
    * @Param: [customerId]
    * @Return: cc.yugu.yhdw.common.domain.hdw.Bicycle
    * @Author By: zjn 2018/6/30  11:23
    */
    public Bicycle findByCustomer(Integer customerId);
    /**
    * 根据主键删除
    *
    * @Param: [id]
    * @Return: void
    * @Author By: zjn 2018/6/30  11:23
    */
    public void delete(@Param("id") String id);
}
